<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentConfigAddPremiumTemplate extends Migrator
{

    public function up()
    {
        $this->table('agent_config')
            ->addColumn('mould', 'boolean', ['limit' => 1, 'default' => '0', 'comment' => '溢价模板 0默认 1自定义'])
            ->update();
    }

    public function down()
    {
        $this->table('agent_config')->removeColumn('mould');
    }
}
